
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>test</title>
<style>

    body{
        background-image: url("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg2.doubanio.com%2Fview%2Fgroup_topic%2Fl%2Fpublic%2Fp393349191.jpg&refer=http%3A%2F%2Fimg2.doubanio.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1643352580&t=85fbcbfdca3d05424f5fa6b804eae796");;
    }

    obj{
        text-align: center;

    }
</style>

	</head>



	<body>


	</body>
</html>

    <script type="text/javascript">

        var a=0;
        var e=0;
        var i=0;
        var o=0;
        var u=0;
        var jieshou=prompt("请输入你想查询的单词:");
        for(var i1=0; i1<jieshou.length; i1++){
        if(jieshou.charAt(i1) =='a'){
            a++;
        }else if(jieshou.charAt(i1) =='e'){
            e++;
        }else if(jieshou.charAt(i1) =='i'){
            i++;
        }else if(jieshou.charAt(i1) =='o'){
            o++;
        }else if(jieshou.charAt(i1) =='u'){
            u++;
        }
        }
        document.write("a:"+a+"  ","e:"+e+"  ","i:"+i+"  ","o:"+o+"  ","u:"+u+"  ");
        // console.log(a,e,i,o,u);
        document.write("<div id=\"ok\">"+percentage+"</div>");
        document = obj.style.write;


            </script>




</html>


